a = input()[0]
print(f"  {a}")
print(f" {a}{a}{a}")
print(f"{a}{a}{a}{a}{a}")
print(f" {a}{a}{a}")
print(f"  {a}")